import React from 'react'
import {PageHeaderWrapper} from "@ant-design/pro-layout";
import {connect} from "dva";
import {Button} from "antd";

@connect(({pay}) => ({pay}))

export default class Pay extends React.Component {
  toPay() {
    this.props.dispatch({type: 'pay/fetchPay'});
  };

  render() {
    return (
      <PageHeaderWrapper>
        <div>12345</div>
        <Button onClick={this.toPay.bind(this)}>去付款</Button>
      </PageHeaderWrapper>
    )
  }
}
